package com.qinggeng.project.system.domain;

import com.qinggeng.common.enums.MessageTypeEnum;
import com.qinggeng.common.utils.DateUtils;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.config.mq.dto.MessageOrdersMessageDTO;
import com.qinggeng.framework.web.domain.BaseEntity;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息列对象 user_message
 *
 * @author qinggeng
 * @date 2020-06-30
 */
@Slf4j
@Data
public class UserMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Long messageId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 消息类型 10=系统消息 20=订单消息 30=提现消息 40=退款消息 */
    @Excel(name = "消息类型 10=系统消息 20=订单消息 30=提现消息 40=退款消息" )
    private String messageType;

    /** 关联ID */
    @Excel(name = "关联ID")
    private Long fkId;

    /** 关联消息 */
    @Excel(name = "关联消息")
    private String fkMark;

    /** 关联内容 */
    @Excel(name = "关联内容")
    private String fkContent;

    //状态吗
    private String statusCode;

    //删除状态
    private String delFlag;

    private Boolean read;

    private UserWithdraw withdraw;

    private Orders orders;

    private OrdersReturn ordersReturn;

    private String messageCategory;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("userId", getUserId())
            .append("messageType", getMessageType())
            .append("fkId", getFkId())
            .append("fkMark", getFkMark())
            .append("createTime", getCreateTime())
            .toString();
    }

}
